#include <iostream>
#include <string>
#include <string_view>

constexpr std::string_view getQuantityPhrase(int num) {
    if (num <= 0) {
        return "no";
    }
    if (num == 1) {
        return "a single";
    }
    if (num == 2) {
        return "a couple of";
    }
    if (num == 3) {
        return "a few";
    }
    return "many";
}

constexpr std::string_view getApplesPluralized(int num) {
    return (num == 1) ? "apple" : "apples";
}

int main() {
    std::cout << "Mary has " << getQuantityPhrase(3) << " " << getApplesPluralized(3) << ".\n";

    std::cout << "How many apples do you have?\n";
    int numApples {};
    std::cin >> numApples;

    std::cout << "You have " << getQuantityPhrase(numApples) << " " << getApplesPluralized(numApples) << ".\n";

    return 0;
}